<template>
    <div class="update-birthday">
        <van-datetime-picker
            v-model="currentDate"
            type="date"
            :min-date="minDate"
            :max-date="maxDate"
            @cancel="$emit('close')"
            @confirm="onConfirm"
        />
    </div>
</template>
<script>
export default {
    data() {
        return {
            minDate: new Date(2000, 1, 1),
            maxDate: new Date(),
            currentDate: new Date()
        }
    },
    methods: {
        onConfirm() {
            this.$toast.loading({
                message:'保存中',
                forbidclick:true
            })
            this.$toast.success('保存成功')
            this.$emit('close')
        }
    }
}
</script>
<style lang="less" scoped>

</style>